package com.gzck.gzck_verson2.pojo.page;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzck.gzck_verson2.pojo.GProjectInfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MyPage<T>  {

    // 当前页
    private long current;

    // 每页显示条数
    private long size;

    // 查询条件
    private T condition;

    // 构造Page对象
    public Page<T> getPage() {
        return new Page<>(current, size);
    }
}
